package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 我的主页管理表
 * </p>
 *
 * @author LX
 * @since 2018-09-26
 */
@TableName("erp_homepage")
public class ErpHomepage extends Model<ErpHomepage> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户ID
     */
    private Integer userid;
    /**
     * 名称
     */
    private String name;
    /**
     * 地址
     */
    @TableField("page_url")
    private String pageUrl;
    /**
     * 序号
     */
    private Integer number;
    /**
     * 字体类型
     */
    @TableField("font_type")
    private String fontType;
    /**
     * 字体大小
     */
    @TableField("font_size")
    private String fontSize;
    /**
     * 字体颜色
     */
    @TableField("font_color")
    private String fontColor;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPageUrl() {
        return pageUrl;
    }

    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getFontType() {
        return fontType;
    }

    public void setFontType(String fontType) {
        this.fontType = fontType;
    }

    public String getFontSize() {
        return fontSize;
    }

    public void setFontSize(String fontSize) {
        this.fontSize = fontSize;
    }

    public String getFontColor() {
        return fontColor;
    }

    public void setFontColor(String fontColor) {
        this.fontColor = fontColor;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpHomepage{" +
        ", id=" + id +
        ", userid=" + userid +
        ", name=" + name +
        ", pageUrl=" + pageUrl +
        ", number=" + number +
        ", fontType=" + fontType +
        ", fontSize=" + fontSize +
        ", fontColor=" + fontColor +
        "}";
    }
}
